<script>
	import {
		mapMutations,
		mapState
	} from 'vuex'
	export default {
		computed: mapState(['msgList']),
		methods: {
			...mapMutations(['appOnLunch', 'connectAndOnMessage'])
		},
		onLaunch: function() {
			var user = uni.getStorageSync('user');
			if (user.hasLogin === true) {
				this.appOnLunch(user);//给vuex用户信息
				this.connectAndOnMessage();//开启聊天消息服务
			}
			// #ifdef APP-PLUS
			// 检查更新
			// this.GLOBAL.checkUpdater(plus.runtime.version, '../common/update')
			// uni.showModal({
			// 	title: '提示',
			// 	content: '此版本为源梦团队内部测试版本，未经允许禁止发布到互联网！www.ym998.cn',
			// 	showCancel: false
			// });
			// #endif
		},
		onShow: function() {

		},
		onHide: function() {
			var user = uni.getStorageSync('user');
			if (user.hasLogin === true) {
				this.connectAndOnMessage();
				uni.request({//用户消息列表上传至服务器
					url: this.GLOBAL.serverSrc + 'message/top_chat/recordlist',
					method: 'POST',
					data: {
						'msgList': this.msgList
					}
				});
			}
			console.log('App Hide');
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "./static/css/simplepro.css";
	@import "./graceUI/graceUI.css";

	@font-face {
		font-family: "iconfont";
		src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAA9AAAsAAAAAGnQAAA7wAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFZAqjbJwLATYCJANQCyoABCAFhG0HgWMboBUz0lHSio7s/5CgSdwKV3tY0DRu50iKRDAMC8LFTCS82erhsWUzy7QgCIbB5Y1rvmrP9lCGzfwS2Vn5JBBD4oL/be6LAFr719njR6gCgJKQVBygJBIGdYRJWmErK9T9AkAOBBDM95vZkGxtiOy2M0PVBEnFHX7hzmGI7HoEqbimyLv79N8erikVyE2YDOyjrB159Gl6Se7z1Mul5CfcjK+fUCzkJhwxgLGJt9Xm/+cDh3Bbt42ygM1ozEIHik2lEYn+P44POz+aj4gwvqLTxO391cX9/79fq7qladhDf4LSKJkS3h3/BnPxi6mGwiESIomo9gbxtaZed0NOWzfXtRibHK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pLGNVM12fXNNDDoVkBGZ4ZCxo27FI06cs1vbpmnh+sdTQD8u0Q8yq9oYjwZop4cLonEAyzMVsI1A1tdZyeeT0vAETSklBqx3xAOSxRmRxGm25hhqI4gC/NDmzFpqaSlyxq0FZNqKlpgDFsWVup0mi0w6MVVPtjaxCgMRmwjlhZpMSKY2aXp6NYr//BjCCkkQ5E85SPgDEw9ULmVhawvVarUtNuC79vSUjx5w0oQ8njYpwxQmUqrEhtOlbFYDCYrZGfWsq4QvpsmrcvV5dAqqTb1L5cfdDJMmKqumGadmO6/l0dPX0DUL3PEjijkaCboWVzHonUdYFThYINsh6G7YWO17JuudtEwocGLP9KigLo7LQlmt0oEPHs6QeCWWjqxXaWahNJUcy1BzaL1Ba2WQ9+5xjrHUTKSRVQoel8YM11kbfdMg2VDMfhXZvDwAAAA==') format('woff2');
		/* iOS 4.1- */
	}

	.iconfont {
		font-family: "iconfont" !important;
		font-size: 36upx;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.icon-heart:before {
		content: "\e64b";
	}

	.icon-fire:before {
		content: "\e729";
	}

	.icon-mima1:before {
		content: "\e63d";
	}

	.icon-bianji:before {
		content: "\e6cf";
	}

	.icon-qiehuanzuzhi:before {
		content: "\e60d";
	}

	.icon-scan:before {
		content: "\e614";
	}

	.icon-shouji:before {
		content: "\e613";
	}

	.icon-gouwuche:before {
		content: "\e617";
	}

	.icon-lianxikefu:before {
		content: "\e668";
	}

	.icon-star:before {
		content: "\e643";
	}

	.icon-heart1:before {
		content: "\e6b3";
	}

	.icon-yanzhengma:before {
		content: "\e61b";
	}

	.icon-shezhi:before {
		content: "\e61c";
	}

	.icon-jiahao1:before {
		content: "\e616";
	}

	.icon-jiahao:before {
		content: "\e626";
	}

	.icon-info-circle:before {
		content: "\e77e";
	}

	.icon-tags:before {
		content: "\e7e5";
	}

	.icon-xingxing:before {
		content: "\e70b";
	}

	.icon-thumbs-up:before {
		content: "\e922";
	}



	.ymkj-gradient-bg {
		width: 100%;
		background-color: #f43f3b;
	}

	.grace-steps .current .step-circle {
		background: #f43f3b;
		color: #FFFFFF;
	}

	.grace-steps .current .step-title {
		color: #f43f3b;
	}

	.ymkj-reply-list {
		display: flex;
		flex-wrap: nowrap;
		padding: 10upx 0;
		margin: 5upx 0;
	}

	.ymkj-reply-top {
		display: flex;
		flex-wrap: nowrap;
		line-height: 1.5em;
	}

	.ymkj-reply-top text {
		color: #0A98D5;
		font-size: 24upx;
	}

	.ymkj-reply-top .grace-iconfont {
		color: gray;
		font-weight: bold;
	}

	.ymkj-reply-margin {
		margin-left: 15upx;
	}

	.ymkj-bg {
		background-color: #fc4243;
	}
</style>
